<template>
  <el-button @click="handleClick">点击</el-button>
  <test :val="value" />
</template>

<script lang="ts" setup>
import test from './components/test.vue'
import { getHotCityApi } from '@/apis/index'
import { ref } from 'vue'

const value = ref('')

const handleClick = async () => {
  const res = await getHotCityApi()
  console.log(res)

  value.value = 'avatar'
}
</script>
<style scoped>
.example-showcase .el-dropdown + .el-dropdown {
  margin-left: 15px;
}
.example-showcase .el-dropdown-link {
  cursor: pointer;
  color: var(--el-color-primary);
  display: flex;
  align-items: center;
}
</style>
